<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Test1</title>
    <!-- 内嵌式 -->
    <script>
        alert('Hello World');
    </script>
</head>
<body>
    <!-- 行内式 -->
    <input type="button" value="按钮" onclick="alert('Hello World')">
    <!-- 外部式 -->
    <script src="./Test1.js"></script>
</body>
</html>